package com.drug.mapper;
import com.drug.domain.Hospital;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface HospitalMapper {
    int deleteByPrimaryKey(Integer hId);


    // ?��??????
    List <Hospital> selectHospital(Hospital hospital);
    //��????��??
     List<Hospital> pageFindAll();
    // ????????????
    void deleteHospital(Integer hId);
    //?��??????
    void insertHospital(Hospital hospital);
    //?��??
    public Hospital selectById(Integer id);
    //????????
    void updateHospital(Hospital hospital);
    int insert(Hospital record);


    Hospital selectByPrimaryKey(Integer hId);



    Integer selectIdByName(String hospital);
	
	 /**
     * ����ҽԺ���ֲ�ѯID
     * @param hName
     * @return
     */
    Integer selectByName(String hName);

   //查询供货商名字
    String[] selectHname(String hName);
}